﻿<%@ Page  Title="" Language="C#" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModalWindow.Master" 
    AutoEventWireup="true" CodeBehind="DeleteResourceWindow.aspx.cs" 
    Inherits="Medianamik.UI.Web.ModalWindows.DeleteResourceWindow" %>

<asp:Content ID="HeaderContentHolder" runat="server" ContentPlaceHolderID="HeaderContentHolder">
<telerik:RadScriptBlock runat="server" ID="scriptBlock">
	<script type="text/javascript">
        //<![CDATA[
        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function Cancel_Clicked() {
            var oWindow = GetRadWindow();
            oWindow.argument = null;
            oWindow.Close();
        }

        function closeWindow(reloadType) {
            var arg = new Object();
            arg.reloadType = reloadType;
            var oWindow = GetRadWindow();
            oWindow.Close(arg);
        }
        //]]>
	</script>
	</telerik:RadScriptBlock>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:ScriptManager ID="MedianamikScriptManager" EnableHistory="true" EnablePageMethods="true" runat="server"  EnablePartialRendering="true" ScriptMode="Release" />
	<fieldset>
	    <asp:PlaceHolder ID="mainPlaceHolder" runat="server">
            <p><asp:Literal ID="textLabel" runat="server" Text="<%$ Resources: Medianamik_ResourceManagement, ConfirmDeleteResourceInstance %>" /></p>
            <p><asp:DropDownList ID="deleteOptions" CssClass="SelectList" runat="server" /></p>
		    <p><asp:Button ID="deleteButton" runat="server" OnClick="Delete" Text="<%$ Resources: Medianamik_ResourceManagement, DeleteResourceButton %>" class="Btn" />&nbsp;
		        <input type="button" class="Btn" value="<%=Resources("Medianamik_Global","Cancel") %>" onclick="Cancel_Clicked();" /></p>
	    </asp:PlaceHolder>
	    <asp:PlaceHolder ID="denyPlaceHolder" Visible="false" runat="server">
	        <p><asp:Literal ID="denyMessage" runat="server" /></p>
	    </asp:PlaceHolder>
	</fieldset>
</asp:Content>